package com.training.action.liuyong;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.ULog;
import com.training.service.liuyong.ILogService;

public class LogAction extends ActionSupport {

	private List<ULog> list;
	private ILogService logService;

	public String execute() {
		list = logService.getLogs();
		for (ULog log : list) {
			System.out.println(log.getLogid() + "," + log.getLogtime());
		}
		System.out.println(list.size());
		return SUCCESS;
	}

	public List<ULog> getList() {
		return list;
	}

	public void setList(List<ULog> list) {
		this.list = list;
	}

	public ILogService getLogService() {
		return logService;
	}

	public void setLogService(ILogService logService) {
		this.logService = logService;
	}
}
